package com.xust.oa.controller;

/**
 * @author zj
 * @time 2025/3/27 23:01
 */
import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.common.Term;

import java.util.List;

public class HanLPExample {
    public static void main(String[] args) {
        String text = "这是一个测试句子。";
        List<Term> termList = HanLP.segment(text);
        for (Term term : termList) {
            System.out.println(term.word);
        }
    }
}
